import request from '@/utils/request'

// 查询雨量计任务列表
export function listRaintestrecord(query) {
  return request({
    url: '/system/raintestrecord/list',
    method: 'get',
    params: query
  })
}

// 查询雨量计任务详细
export function getRaintestrecord(RegisterID) {
  return request({
    url: '/system/raintestrecord/' + RegisterID,
    method: 'get'
  })
}

// 新增雨量计任务
export function addRaintestrecord(data) {
  return request({
    url: '/system/raintestrecord',
    method: 'post',
    data: data
  })
}

// 修改雨量计任务
export function updateRaintestrecord(data) {
  return request({
    url: '/system/raintestrecord',
    method: 'put',
    data: data
  })
}

// 删除雨量计任务
export function delRaintestrecord(RegisterID) {
  return request({
    url: '/system/raintestrecord/' + RegisterID,
    method: 'delete'
  })
}
